//
//  DHGradualButton.m
//  Dresshere
//
//  Created by 张朋 on 2017/12/12.
//  Copyright © 2017年 张朋. All rights reserved.
//

#import "DHGradualButton.h"

@implementation DHGradualButton

- (void)drawRect:(CGRect)rect{
    [super drawRect:rect];
    UIImageView *bgImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, rect.size.width, rect.size.height)];
    bgImageView.image = [UIImage imageNamed:@"button_bg_1px"];
    [self insertSubview:bgImageView atIndex:0];
    self.layer.cornerRadius = self.height / 2;
    self.layer.masksToBounds = YES;
}

@end
